@import "./loading";
@import "./cell";

.pager {
    height: @size * .45;
    .flexCenter();
    user-select: none;
}

.btn-search {
    width: @size * .32;
    height: @size * .32;
    font-size: 20px;
    padding: 0;
    vertical-align: middle;
    .flexCenter();
    &.large {
      width: @size * .6;
      height: @size * .6;
      font-size: 30px;
    }
}

.chart-bar {
  height: @size * 3;
}

.cursor {
    cursor: pointer;
}


// upload
.form-hou {
    min-height: @size * 4;
    .save {
        position: absolute;
        right: 0;
        bottom: 0;
        text-align: right;
    }
}
.upload-list {
    .file {
        font-size: @size * .5;
    }
    .name {
        line-height: @size * .14;
        text-align: left;
        .e1()
    }
    margin-bottom: @space;
    // overflow: hidden;
    .item {
        text-align: center;
        width: 100px;
        &.height-150 {
            height: @size * 1.5;
        }
        // height: 100px;
        // line-height: 100px;
        margin: @space 0 0 @space;
        background-color: @white;
        text-align: center;
        position: relative;
        float: left;
        &.ivu-upload {
            height: 100px;
        }
        &.large {
          width: 200px;
          height: 200px;
          a {
            width: 100%;
            height: 100%;
          }
        }
        .btn-close {
            top: -@space / 2;
            right: -@space / 2;
            .radius();
            font-size: 30px;
            color: @red;
            background-color: @white;
            position: absolute;
            cursor: pointer;
            .flexCenter();
        }
        .btn-load {
            left: @space / 2;
            // font-size: 30px;
            // color: @blue;
            // position: absolute;
            margin-top: @size * .1;
            cursor: pointer;
            position: absolute;
            left: @size * .1;
            // transform: translateX(-50%);
        }
        .btn-left {
            top: @space * 3.5;
            left: @space / 2;
            font-size: 30px;
            color: @blue;
            position: absolute;
            cursor: pointer;
        }
        .btn-right {
            top: @space * 3.5;
            right: @space / 2;
            font-size: 30px;
            color: @blue;
            position: absolute;
            cursor: pointer;
        }
        a {
            width: 100px;
            height: 100px;
            .flexCenter();
            flex-direction: column;
        }
        img {
            max-width: 100%;
            max-height: 100%;
        }
        .ivu-upload {
            height: 100%;
        }
        .ivu-upload-drag {
            border: 1px dashed #777;
            .radius(0);
            &:hover {
                border-color: @blue;
            }
            .ivu-icon {
                .center();
                font-size: 40px;
            }
        }
        .ivu-progress {
            float: left;
        }
    }
}

// model form
.model-form {
    .ivu-input-number {
        width: 100%;
    }
    .table-header {
        .borderTop();
        .borderBottom();
        font-size: 16px;
        font-weight: bold;
        background-color: #f3f3f3;
        .ivu-col {
            padding: @space;
        }
    }
    .table-body {
        // max-height: @size * 3;
        // overflow: auto;
        .ivu-col {
            padding: @space;
        }
    }
}

// car-type-select
.car-type-select {
    .ivu-steps {
        height: 62px;
    }
    .header {
        margin-bottom: @space;
    }
    .title-select {
        width: 100%;
        height: 50px;
        padding: @space 0;
        .borderTop();
        .borderBottom();
        .flexCenter();
        .item {
            height: 30px;
            line-height: 30px;
            padding: 0 @space;
            margin-left: @space / 2;
            .border(@blue);
            color: @blue;
            float: left;
            cursor: pointer;
            position: relative;
            animation: titleShow 300ms;
            &:hover {
                &:after {
                    display: block;
                }
            }
            &.active {
                color: @white;
                background-color: @blue;
            }
            &:after {
                content: "↓";
                left: 50%;
                bottom: 100%;
                display: none;
                position: absolute;
                transform: translateX(-50%);
            }
        }
    }
    @keyframes titleShow {
        0% {
            height: 0;
        }
        100% {
            height: 30px;
        }
    }
    .list {
        overflow: hidden;
    }
    .group {
        overflow: hidden;
    }
    .title {
        margin: @space 0 ;
    }
    .step {
        width: 100%;
        height: @size * 3;
        overflow: auto;
        &.step2 {
            .item {
                margin-top: 0;
                margin-bottom: @space;
            }
        }
        .item {
            margin-top: @space;
            margin-left: @size * .09;
            .border(@deepBorder);
            float: left;
            cursor: pointer;
            .flexBetween();
            &:hover {
                color: @blue;
                border-color: @blue;
            }
            &.active {
                border-color: @blue;
                color: @white;
                background-color: @blue;
            }
            img {
                width: @size * .4;
                margin: @space;
                vertical-align: middle;
            }
            div {
                width: @size;
                height: @size * .6;
                float: right;
                .flexLeft();
                &.tc {
                    width: @size * 1.6;
                    padding: @space;
                    .flexCenter();
                }
            }
        }
    }
    @keyframes stepItemShow {
        0% {
            height: @space * .3;
            opacity: .5;
        }
        100% {
            height: @size * .6;
            opacity: 1;
        }
    }
}

// auotocomplete
.auto-parent {
    position: relative;
}
.autocomplete {
    width: 100%;
    max-height: @size * 3;
    background-color: @white;
    z-index: 10;
    position: absolute;
    overflow: hidden;
    overflow-y: auto;
    .item {
        line-height: 1.2em;
        padding: @space;
        .borderLeft();
        .borderBottom();
        .borderRight();
        cursor: pointer;
        color: #333;
        .flexBetween();
        &:hover {
            background-color: #f0faff;
        }
    }
    .ivu-row {
        width: 100%;
    }
}

// table
.table {
    width: 100%;
    .border();
    tr {
        height: 50px;
        &:nth-child(2n) {
            td {
                background-color: #f7faff;
            }
        }
        &:hover {
            background-color: #ebf7ff;
        }
    }
    tr + tr {
        td {
            .borderTop();
            position: relative;
        }
    }
    th {
        font-size: 15px;
        font-weight: normal;
        background-color: #f8f8f9;
        text-align: left;
    }
    td {
        font-size: 13px;
        padding: 0 @space / 2;
        background-color: @white;
        text-align: left;
        word-break: break-all;
    }
    .ivu-input-wrapper {
        width: auto;
    }
    ul {
      margin: @space 0;
    }
}
.outer {
  width: 100%;
  height: e('calc(100vh / 2.5)');
  position: relative;
  overflow: hidden;
  .inner {
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    overflow-x: hidden;
    overflow-y: scroll;
    .fixedHegiht {
      width: 100%;
      max-height: 100%;
    }
  }
  .inner::-webkit-scrollbar {
    display: none;
  }
}
.simple-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    th,
    td {
        .border();
    }
    th {
        padding: @space @space / 2;
        font-size: 15px;
        font-weight: normal;
        background-color: #f8f8f9;
    }
    td {
        padding: @space * .5 @space / 2;
        background-color: @white;
        text-align: left;
        word-break: break-all;
    }
}

.ivu-table-cell .imgs {
    width: @size / 2;
    height: @size / 2;
    margin: 8px;
    margin-left: 0;
    text-align: center;
    .flexCenter();
    img {
      max-width: 100%;
      max-height: 100%;
    }
  }

@keyframes flip {
    0% {
        transform: scaleY(0)
    }
    100% {
        transform: scaleY(1);
    }
}

.flip-enter-active, .flip-leave-active {
    transform: scaleY(1);
    transition: transform .5s
}
.flip-enter, .flip-leave-to {
    transform: scaleY(0);
}

.flip-x-enter-active, .flip-x-leave-active {
    transform: scaleX(1);
    transition: transform .5s
}
.flip-x-enter, .flip-x-leave-to {
    transform: scaleX(0);
}

@media print {
    .print-btn {
        display: none;
    }
}

//mall
.mall-tableTopBtn-box{
    height: 60px;
    margin-bottom: 5px;
    border-color: #eee;
    background-color: #fff;
    padding-left: 5px;
    display: flex;
    align-items: center;
    Button{
        margin-right: 5px;
    }
}

li {
    list-style: none;
}

.more-button-inDropdown {
    .ivu-select-dropdown {
        .ivu-dropdown-item {
            margin-bottom: 4px;
            padding: 4px 0;
            button {
                width: 80%;
            }
        }
    }
}
